#!/user/bin/env node

const cp = require('child_process');
const file = process.argv[2];

const cat = cp.spawn('cat',[file]),
      sort = cp.spawn('sort'),
      uniq = cp.spawn('uniq');

cat.stdout.pipe(sort.stdin);
sort.stdout.pipe(uniq.stdin);
uniq.stdout.pipe(process.stdout); 
